i = int(raw_input('Input a number(10000~99999):'))
if i<10000 or i>99999:
    print 'Error!'
else:
    i = str(i)
    flag = 0
    for j in range(0,2):
        if i[j]!=i[4-j]:
            flag = 1
            break
    if flag==1:
		print "Yes"
	else:
		print "No"